import Mock from 'mockjs'
import { getRoutes } from './data/route'
import { login } from './data/user'

export const setupMock = () => {
  Mock.mock('/user/login', 'post', login)
  Mock.mock('/routes/getRoutes', 'post', getRoutes)

  Mock.setup({
    timeout: '200-800',
  })
  console.log('🧑‍🤝‍🧑 MockJS is running 🔂', Mock)
}
